package com.hlhj.funlike_businessqzxd.activity.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.clj.fastble.data.BleDevice;
import com.hlhj.funlike_businessqzxd.R;

import java.util.List;

public class BlueAdp extends BaseQuickAdapter<BleDevice,BaseViewHolder> {
    public BlueAdp( @Nullable List<BleDevice> data) {
        super(R.layout.blue_item, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BleDevice item) {
        helper.setText(R.id.deviceName,item.getName());
        helper.setText(R.id.deviceAddress,item.getDevice().getAddress());

    }
}
